home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!usc!usenet
- From: Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
- Newsgroups: comp.lang.c++
- Subject: Re: Caught in a loop.
- Date: 12 Mar 1996 01:39:55 GMT
- Organization: University of Southern California
- Sender: lerdsuwa@sal-sun64.usc.edu
- Message-ID: <4i2klb$98t@usc.edu>
- References: <4i2b69$201@gateway.i2020.net>
- NNTP-Posting-Host: sal-sun64.usc.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; SunOS 4.1.4-PL sun4m)
- X-URL: news:4i2b69$201@gateway.i2020.net
-
- When enter is pressed, ch equals 13. So you have to change the while
- statements to while (eof!=13)
- and change both if (eof) to if (eof!=13).
-
- Kriang Lerdsuwanakij
-
-